[index]

Platform Function

Syntax

the platform or platform()

Description

The platform function returns the name of the operating system platform on which Oracle Media Objects is currently running. If Oracle Media Objects is running on Microsoft Windows, platform returns the string "Windows". If Oracle Media Objects is running on an Apple Macintosh, platform returns the string "Macintosh".

Examples

The following card handler selects the proper file extension for Oracle Media Objects stacks on the current platform and provides the user with an Open File dialog box that lists only those files: on openCard put the platform into current_os if current_os is "Windows" then put "STA" into the_extension else put "STAK" into the_extension end if open of type the_extension if it is not empty then go to stack it
This text has been mechanically extracted from the Oracle Media Objects 1.0.4.9 MediaTalk Reference, © 1995 Oracle Corporation, and is provided here solely for educational/historical purposes.